const path = require('path')
const { env } = require('process')

module.exports = {
    publicPath: '/chuneng2/',
    productionSourceMap: false,
    
    chainWebpack: config => {
        config
            .plugin('html')
            .tap(args => {
                args[0].title = '分布式储能在线监测与评估系统'
                return args
            })
            .end()
    },
    configureWebpack: {
        resolve: {
            alias: {
                '@': path.resolve(__dirname, 'src'),
                'com': path.resolve(__dirname, 'src', 'components'),
            }
        },
        externals:{
          'echarts':'echarts'
        },
        module: {

        }
    }
}